package Top_Interview_Questions.Math;

/**
 * @Author: 吕庆龙
 * @Date: 2020/3/12 11:51
 * <p>
 * 功能描述:
 */
public class _0172 {
    public static void main(String[] args) {
        _0172 test = new _0172();
        int countZero = test.trailingZeroes(250);
        System.out.println(countZero);
    }

    public int trailingZeroes(int n) {
        int count = 0;
        while (n > 0) {
            count += n / 5;
            n = n / 5;
        }
        return count;
    }

}
